#pragma once

#include <QString>
#include <QJsonObject>

namespace WordMemory
{
    struct Vocabulary
    {
        int id;
        int userId;
        QString name;
        int wordCount;
        bool isDefault;
        bool isFavorites;
        bool isMistakesBook;

        Vocabulary(int id = 0, int userId = 0, const QString &name = "",
                   int wordCount = 0, bool isDefault = false, bool isFavorites = false, bool isMistakesBook = false);

        QJsonObject toJson() const;

        static Vocabulary fromJson(const QJsonObject &json);
    };
}
